package com.pingan.agentbank.aaos.testme;

import com.pingan.agentbank.aaos.pojo.BusiData;
import com.pingan.agentbank.aaos.pojo.RequestInfo;
import com.pingan.agentbank.aaos.pojo.SysHeader;
import com.pingan.agentbank.aaos.util.AaisRemote;
import com.pingan.vframe.Controller;
import com.pingan.vframe.beans.Injector;
import com.pingan.vframe.sdo.ServiceData;
import org.junit.Test;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;

public class RemoteCallTest {

    @Test
    public void method1(){

        SysHeader sysHeader = new SysHeader(String.valueOf(new Date().getTime()), "04", UUID.randomUUID().toString().replace("-", ""), "BBWB");
        List<String> param = new ArrayList<>();
        param.add("name");
        param.add("age");
        BusiData busiData = new BusiData("0", "452123938", param);
        RequestInfo requestInfo = new RequestInfo(sysHeader,busiData);

        Injector injector = Controller.getInstance().getInjector();
        AaisRemote aaisRemote = injector.getBean(AaisRemote.class);
        ServiceData serviceData = aaisRemote.getApplyInfoFromAAIS(requestInfo);

    }
}
